package org.vectrics.recruiter.job.event;

import java.util.Locale;

import org.vectrics.event.Event;
import org.vectrics.event.EventEmailBuilder;
import org.vectrics.provider.CoreServiceLocator;
import org.vectrics.recruiter.job.Job;

abstract public class JobEmailBuilderBase extends EventEmailBuilder {
	private Job job = null;

	public JobEmailBuilderBase(Event event, Job job, Locale locale) {
		super(event, locale);
		this.job = job;
	}
	
	public Job getJob() {
		return(job);
	}


	protected String getEmailFromName() {
		String from = CoreServiceLocator.getSystemService().getStringSystemConstant("mail.from.name", job.getDomain());
		return(from);
	}
	

}
